home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 October: Mac OS SDK / Dev.CD Oct 00 SDK1.toast / Development Kits / Cross Platform / QuickTime 4.1.2 Windows SDK / RIncludes / AVComponents.r < prev    next >
Encoding:
Text File  |  2000-04-12  |  9.1 KB  |  229 lines  |  [TEXT/R*ch]

  1. /*
  2.      File:        AVComponents.r
  3.  
  4.      Contains:    Standard includes for standard AV panels
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    QuickTime 4.1
  8.  
  9.      Copyright:    © 1989-1999 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17.  
  18. #ifndef __AVCOMPONENTS_R__
  19. #define __AVCOMPONENTS_R__
  20.  
  21. #ifndef __CONDITIONALMACROS_R__
  22. #include "ConditionalMacros.r"
  23. #endif
  24.  
  25.  
  26. /*
  27.     The subtypes listed here are for example only.  The display manager will find _all_ panels
  28.       with the appropriate types.  These panels return class information that is used to devide them
  29.       up into groups to be displayed in the AV Windows (class means "geometry" or "color" or other groupings
  30.       like that.
  31. */
  32. #define kAVPanelType                     'avpc'                /*  Panel subtypes             */
  33. #define kBrightnessPanelSubType         'brit'
  34. #define kContrastPanelSubType             'cont'
  35. #define kBitDepthPanelSubType             'bitd'
  36. #define kAVEngineType                     'avec'                /*  Engine subtypes                 */
  37. #define kBrightnessEngineSubType         'brit'
  38. #define kContrastEngineSubType             'cont'                /*     kBitDepthEngineSubType        = 'bitd',            // Not used                     */
  39. #define kAVPortType                     'avdp'                /*  subtypes are defined in each port's public .h file  */
  40. #define kAVUtilityType                     'avuc'
  41. #define kAVBackChannelSubType             'avbc'
  42. #define kAVCommunicationType             'avcm'
  43. #define kAVDialogType                     'avdg'
  44.  
  45. /* PortComponent subtypes are up to the port and display manager does not use the subtype
  46.     to find port components.  Instead, display manager uses an internal cache to search for portcompoennts.
  47.     It turns out to be useful to have a unique subtype so that engines can see if they should apply themselves to
  48.     a particular port component.
  49.   
  50.    PortKinds are the "class" of port.  When a port is registered with display manager (creating a display ID), the
  51.     caller of DMNewDisplayIDByPortComponent passes a portKind.  Ports of this type are returned by
  52.     DMNewDevicePortList.
  53.   
  54.    PortKinds are NOT subtypes of components
  55.    PortKinds ARE used to register and find port components with Display Manager.  Here are the basic port kinds:
  56.   
  57.    Video displays are distinct from video out because there are some video out ports that are not actaully displays.
  58.     if EZAV is looking to configure displays, it needs to look for kAVVideoDisplayPortKind not kAVVideoOutPortKind.
  59. */
  60. #define kAVVideoDisplayPortKind         'pkdo'                /*  Video Display (CRT or panel display)                 */
  61. #define kAVVideoOutPortKind             'pkvo'                /*  Video out port (camera output).                       */
  62. #define kAVVideoInPortKind                 'pkvi'                /*  Video in port (camera input)                         */
  63. #define kAVSoundOutPortKind             'pkso'                /*  Sound out port (speaker or speaker jack)             */
  64. #define kAVSoundInPortKind                 'pksi'                /*  Sound in port (microphone or microphone jack)     */
  65. #define kAVDeviceType                     'avdc'                /*  Device Component subtypes are up to the manufacturor since each device may contain multiple function types (eg telecaster)  */
  66. #define kAVDisplayDeviceKind             'dkvo'                /*  Display device */
  67.                                                             /*  Device Component subtypes are up to the manufacturor since each device may contain multiple function types (eg telecaster) */
  68. #define kAVCategoryType                 'avcc'
  69. #define kAVSoundInSubType                 'avao'
  70. #define kAVSoundOutSubType                 'avai'
  71. #define kAVVideoInSubType                 'vdin'
  72. #define kAVVideoOutSubType                 'vdou'
  73. #define kAVInvalidType                     'badt'                /*  Some calls return a component type, in case of errors, these types are set to kAVInvalidComponentType  */
  74.  
  75. /*
  76.    Interface Signatures are used to identify what kind of component
  77.    calls can be made for a given component. Today this applies only
  78.    to ports, but could be applied to other components as well.
  79. */
  80. #define kAVGenericInterfaceSignature     'dmgr'
  81. #define kAVAppleVisionInterfaceSignature  'avav'
  82.  
  83. /* =============================                    */
  84. /* Panel Class Constants                            */
  85. /* =============================                    */
  86. #define kAVPanelClassDisplayDefault     'cdsp'
  87. #define kAVPanelClassColor                 'cclr'
  88. #define kAVPanelClassGeometry             'cgeo'
  89. #define kAVPanelClassSound                 'csnd'
  90. #define kAVPanelClassPreferences         'cprf'
  91. #define kAVPanelClassLCD                 'clcd'
  92. #define kAVPanelClassMonitorSound         'cres'
  93. #define kAVPanelClassAlert                 'calr'
  94. #define kAVPanelClassExtras             'cext'
  95. #define kAVPanelClassRearrange             'crea'
  96.  
  97.  
  98. /* =============================                    */
  99. /* AV Notification Types                            */
  100. /* =============================                    */
  101. /*
  102.    This notification will be sent whenever a
  103.    device has been reset, for whatever reason.
  104. */
  105. #define kAVNotifyDeviceReset             'rset'
  106.  
  107. /* =============================                    */
  108. /* Component interface revision levels and history    */
  109. /* =============================                    */
  110. #define kAVPanelComponentInterfaceRevOne  1
  111. #define kAVPanelComponentInterfaceRevTwo  2
  112. #define kAVEngineComponentInterfaceRevOne  1
  113. #define kAVPortComponentInterfaceRevOne  1
  114. #define kAVDeviceComponentInterfaceRevOne  1
  115. #define kAVUtilityComponentInterfaceRevOne  1
  116.  
  117.  
  118. /* =============================                    */
  119. /* Adornment Constants                                */
  120. /* =============================                    */
  121. #define kAVPanelAdornmentNoBorder         0
  122. #define kAVPanelAdornmentStandardBorder  1
  123.  
  124. #define kAVPanelAdornmentNoName         0
  125. #define kAVPanelAdornmentStandardName     1
  126.  
  127.  
  128. /* =============================                    */
  129. /* Selector Ranges                                    */
  130. /* =============================                    */
  131. #define kBaseAVComponentSelector         256                    /*  First apple-defined selector for AV components  */
  132. #define kAppleAVComponentSelector         512                    /*  First apple-defined type-specific selector for AV components  */
  133.  
  134.  
  135. /* =============================                */
  136. /* Panel Standard component selectors            */
  137. /* =============================                */
  138. #define kAVPanelFakeRegisterSelect         (-5)                /*  -5     */
  139. #define kAVPanelSetCustomDataSelect     0
  140. #define kAVPanelGetDitlSelect             1
  141. #define kAVPanelGetTitleSelect             2
  142. #define kAVPanelInstallSelect             3
  143. #define kAVPanelEventSelect             4
  144. #define kAVPanelItemSelect                 5
  145. #define kAVPanelRemoveSelect             6
  146. #define kAVPanelValidateInputSelect     7
  147. #define kAVPanelGetSettingsIdentifiersSelect  8
  148. #define kAVPanelGetSettingsSelect         9
  149. #define kAVPanelSetSettingsSelect         10
  150. #define kAVPanelSelectorGetFidelitySelect  256
  151. #define kAVPanelSelectorTargetDeviceSelect  257
  152. #define kAVPanelSelectorGetPanelClassSelect  258
  153. #define kAVPanelSelectorGetPanelAdornmentSelect  259
  154. #define kAVPanelSelectorGetBalloonHelpStringSelect  260
  155. #define kAVPanelSelectorAppleGuideRequestSelect  261
  156.  
  157.  
  158. /* =============================                */
  159. /* Engine Standard component selectors            */
  160. /* =============================                */
  161. #define kAVEngineGetEngineFidelitySelect  256
  162. #define kAVEngineTargetDeviceSelect     257
  163.  
  164.  
  165. /* =============================                    */
  166. /* Video Port Specific calls                        */
  167. /* =============================                    */
  168. #define kAVPortCheckTimingModeSelect     0
  169. #define kAVPortReserved1Select             1                    /*  Reserved */
  170. #define kAVPortReserved2Select             2                    /*  Reserved */
  171. #define kAVPortGetDisplayTimingInfoSelect  512
  172. #define kAVPortGetDisplayProfileCountSelect  513
  173. #define kAVPortGetIndexedDisplayProfileSelect  514
  174. #define kAVPortGetDisplayGestaltSelect     515
  175.  
  176.  
  177. /* =============================                    */
  178. /* AV Port Specific calls                            */
  179. /* =============================                    */
  180. #define kAVPortGetAVDeviceFidelitySelect  256                /*  Port Standard Component selectors  */
  181. #define kAVPortGetWiggleSelect             257
  182. #define kAVPortSetWiggleSelect             258
  183. #define kAVPortGetNameSelect             259
  184. #define kAVPortGetGraphicInfoSelect     260
  185. #define kAVPortSetActiveSelect             261
  186. #define kAVPortGetActiveSelect             262
  187. #define kAVPortUnsed1Select             263                    /*  Selector removed as part of API change.  We don't want to mess up the following selectors, so we put in this spacer (ie kPadSelector).  */
  188. #define kAVPortGetAVIDSelect             264
  189. #define kAVPortSetAVIDSelect             265
  190. #define kAVPortSetDeviceAVIDSelect         266                    /*  For registrar to set device (instead of hitting global directly) -- should only be called once  */
  191. #define kAVPortGetDeviceAVIDSelect         267                    /*  Called by display mgr for generic ports  */
  192. #define kAVPortGetPowerStateSelect         268
  193. #define kAVPortSetPowerStateSelect         269
  194. #define kAVPortGetMakeAndModelSelect     270                    /*  Get Make and model information */
  195. #define kAVPortGetInterfaceSignatureSelect  271                /*  To determine what VideoPort-specific calls can be made */
  196. #define kAVPortReserved3Select             272                    /*  Reserved */
  197. #define kAVPortGetManufactureInfoSelect  273                /*  Get more Make and model information   */
  198.  
  199.  
  200.  
  201.  
  202. /* =============================                    */
  203. /* Device Component Standard Component selectors    */
  204. /* =============================                    */
  205. #define kAVDeviceGetNameSelect             256
  206. #define kAVDeviceGetGraphicInfoSelect     257
  207. #define kAVDeviceGetPowerStateSelect     258
  208. #define kAVDeviceSetPowerStateSelect     259
  209. #define kAVDeviceGetAVIDSelect             260
  210. #define kAVDeviceSetAVIDSelect             261
  211.  
  212. /* =============================                    */
  213. /* AV Back-Channel Selectors                        */
  214. /* =============================                    */
  215. #define kAVBackChannelReservedSelector     1
  216. #define kAVBackChannelPreModalFilterSelect  2
  217. #define kAVBackChannelModalFilterSelect  3
  218. #define kAVBackChannelAppleGuideLaunchSelect  4
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227. #endif /* __AVCOMPONENTS_R__ */
  228.  
  229.